<template>
	<view class="content">
		<Son></Son>
		<button type="default" @click="add">加1</button>
	</view>
</template>
<script setup>
	import { ref, provide, readonly } from 'vue';
	import Son from './components/son.vue'
	const count = ref(1);
	provide('count',readonly(count));
	function add() {
		count.value++;
	}
</script>
